<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    // const obj = {
    //     name:"obj"
    // }

    // const obj2 = Object.create( obj );

    // console.log(obj === obj2);
    // console.log(obj);
    // console.log(obj2);
    // console.log(obj2.__proto__ === obj);

    // console.log(obj.name);
    // console.log(obj2.name);


    // =========

    // const obj1 = {
    //     a:10
    // }
    // const obj2 = {
    //     b:20
    // }
    // const obj3 = Object.assign(obj1, obj2)

    // console.log(obj1);
    // console.log(obj2);
    // console.log(obj3);

    // console.log(obj3 === obj1);
    // console.log(obj3 === obj2);

    // ======


    // console.log(Object.is(NaN, NaN))
    // console.log(Object.is({}, {}))
    // console.log(Object.is("hello", "hello"))
    // console.log(Object.is(undefined, null))
    // console.log(Object.is(undefined, undefined))
    // console.log(Object.is(null, null))


    // =========

    
    // const obj = {
    //     name:"admin",
    //     age:19,
    //     sex:"男"
    // }

    // console.log(Object.keys( obj ))

    // console.log(Object.values( obj ))



    // ===========


    // const obj = {
    //     name:"obj"
    // }

    // const obj2 = {
    //     name:"obj2"
    // }

    // console.log(obj.__proto__ === Object.prototype);
    // console.log(obj2.__proto__ === Object.prototype);

    // console.log(Object.getPrototypeOf(obj) === Object.prototype)
    // console.log(Object.getPrototypeOf(obj2) === Object.prototype)


    // obj.__proto__ = obj2
    // Object.setPrototypeOf(obj, obj2)

    // console.log(obj.__proto__ === Object.prototype)
    // console.log(obj.__proto__ === obj2)




    


    
    
</script>
</html>